﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Profile;

namespace imarks.Entity.Membership
{
    public class MembershipProfile : ProfileBase
    {
        /// <summary>
        /// 激活码
        /// </summary>
        [SettingsAllowAnonymous(true)]
        [ProfileProvider("SqlProfileProvider")]
        public string ActivateCode
        {
            get
            {
                return base["ActivateCode"].ToString();
            }
            set
            {
                base["ActivateCode"] = value.Replace("-","");
            }
        }

        /// <summary>
        /// 随机码
        /// </summary>
        [SettingsAllowAnonymous(true)]
        [ProfileProvider("SqlProfileProvider")]
        public string RandomCode
        {
            get
            {
                return base["RandomCode"].ToString();
            }
            set
            {
                base["RandomCode"] = value.Replace("-","");
            }
        }
    }
}
